#ifndef __SHMIPC_CORE_UTILS_H__
#define __SHMIPC_CORE_UTILS_H__

#include <cstdint>

namespace shmipc::core {

inline constexpr uint32_t XFourCC(char const p[5]) { return ((p[0] << 24) | (p[1] << 16) |  (p[2] << 8) | p[3]); }

uint64_t SystemTimeMs();
uint64_t SystemTimeNs();

/**thread sleep API */
void SleepMs(uint32_t time_ms);
void SleepUs(uint32_t time_us);


} //namespace shmipc::core

#endif /** !__SHMIPC_CORE_UTILS_H__ */
